package main

import (
	"fmt"
	"strconv"
)

func plusOne(digits []int) []int {
	sum := 0
	var newlist []int
	str := ""
	for _, i := range digits {
		str += strconv.Itoa(i)
	}
	fmt.Println(str)
	strToint, _ := strconv.ParseInt(str, 10, 64)
	fmt.Println(strToint)

	str = strconv.Itoa(sum)
	for _, j := range str {
		b, _ := strconv.Atoi(string(j))
		newlist = append(newlist, b)
	}
	return newlist
}
func main() {
	d := []int{7, 2, 8, 5, 0, 9, 1, 2, 9, 5, 3, 6, 6, 7, 3, 2, 8, 4, 3, 7, 9, 5, 7, 7, 4, 7, 4, 9, 4, 7, 0, 1, 1, 1, 7, 4, 0, 0, 6}
	b := plusOne(d)
	fmt.Println(b)
}
